@extends('admin.layout')

@section('content_header')
	create nikkei score rank
@stop

@section('content')
	<form method="post" action="{{isset($data)? route('admin.scorerank.update', $data) : route('admin.scorerank.store')}}">
		<div class="form-group">
			<label>ランク</label>
			<input type="text" name="score_rank" class="form-control" value="{{$data->score_rank??''}}">
		</div>
		<div class="form-group">
			<label>スコア最小値</label>
			<input type="text" name="min_score" class="form-control" value="{{$data->min_score??''}}">
		</div>
		<div class="form-group">
			<label>スコア最大値</label>
			<input type="text" name="max_score" class="form-control" value="{{$data->max_score??''}}">
		</div>
		<div class="form-group">
			<label>金利中央値</label>
			<input type="text" name="median_interests" class="form-control" value="{{$data->median_interests??''}}">
		</div>
		<div class="form-group">
			<label>金利最小値</label>
			<input type="text" name="min_interests" class="form-control" value="{{$data->min_interests??''}}">
		</div>
		<div class="form-group">
			<label>金利最大値</label>
			<input type="text" name="max_interests" class="form-control" value="{{$data->max_interests??''}}">
		</div>

		<div class="form-group">
			<label>rank comment</label>
			<textarea class="form-control" rows="3" name="message">{{$data->message??''}}</textarea>
		</div>


		@csrf

		@isset($data) @method('PUT') @endisset
		<div class="form-group">
			<button class="btn btn-primary"> submit </button>
		</div>
	</form>
	@component('admin.error') @endcomponent
@stop